home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windows News 2005 November
/
WNnov2005.iso
/
Windows
/
Equipement
/
hMailServer
/
hMailServer-4.1-Build-136.exe
/
{app}
/
Addons
/
Utilities
/
EncryptAllPasswords.vbs
< prev
next >
Wrap
Text File
|
2005-01-02
|
724b
|
42 lines
option explicit
dim oApp
set oApp = CreateObject("hMailServer.Application")
dim oDomains
set oDomains = oApp.Domains
dim iTotalCount
dim iDomainIdx
For iDomainIdx = 0 To oDomains.Count -1
dim oDomain
set oDomain = oDomains.Item(iDomainIdx)
' Iterate over user accounts
dim oAccounts
set oAccounts = oDomain.Accounts
dim iAccountCount
iAccountCount = oAccounts.Count
Dim iAccountIdx
for iAccountIdx = 0 To iAccountCount - 1
dim oAccount
set oAccount = oAccounts.Item(iACcountIdx)
oAccount.Save
set oAccount = Nothing
iTotalCount = iTotalCount +1
next
set oDomain = Nothing
Next
set oApp = Nothing
msgbox iTotalCount & " password(s) encrypted."